package ren.kane.phoenix.thread;

/**
 * @author renrk(1275) on 2019-08-14 5:01 PM
 **/
public class StartAndRunTest {
    public static void main(String[] args) {
        Thread myThread = new MyThread3("myThread");
        System.out.println(Thread.currentThread().getName() + " call mythread.run()");
        myThread.run();
        System.out.println(Thread.currentThread().getName() + " call mythread.start()");
        myThread.start();
    }
}

class MyThread3 extends Thread {
    public MyThread3(String name) {
        super(name);
    }

    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName() + " is running");
    }
}
